package com.eduhzy.ttw.commonsdk.imgaEngine;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.request.RequestOptions;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by xubo on 2017/11/16.
 */

public class GlideImageLoader extends ImageLoader {

    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        Glide.with(context)
                .load(path)
                .apply(RequestOptions.centerCropTransform().centerCrop().diskCacheStrategy(DiskCacheStrategy.ALL))
                .into(imageView);
    }
}
